#pragma once

#include <string>
#include <bitset>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>

class IOUnit
{

public:
	IOUnit();
	~IOUnit();

	bool checkFile(char* filename);
	std::vector<short>* readFromFile(char* filename, int offset, bool binary);

	int getBitCount(){ return bitCount; }

private:

	std::ifstream pIFile;

	//streambuf test
	std::streambuf* psbuf;
	std::vector<short> bitVector;
	int bitCount;
	bool* bitArray;
	char nextChar;

};

